﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Logic.Functions
{
    class ThresholdActivationFunction : IFunction
    {
        public string Symbol
        {
            get { return "Threshold"; }
        }

        public string FullName
        {
            get { return "Progowa funkcja aktywacji"; }
        }

        public float Compute(float x)
        {
            return x >= 0 ? 1 : 0;
        }

        public float ComputeDerrivative(float x)
        {
            return 0;
        }
    }
}
